package com.ele.client.activity.terminal;

import com.ele.client.activity.terminal.widget.ImagesWidget;
import com.google.gwt.user.client.ui.IsWidget;

import java.util.List;

public interface TerminalView extends IsWidget {

    void setWordWidgets(List<IsWidget> widgets);

    void setDescriptionText(String text);

    void appendDescriptionText(String text);

    void setPresenter(Presenter presenter);

    ImagesWidget getImagesWidget();

    void setQuestionText(String text);

    void setAnswerExamples(List<String> validAnswers);

    void setAnswerSuccess();

    void clearAnswer();

    public interface Presenter {
        void checkAnswer(String answer);
    }
}
